const User = require('../model/user')

const add = (name) => {
  return User.create({name})
}

const getById = (id) => {
  return User.findByPk(id)
}

module.exports = {
  add,getById
}